<?php
use Hyperf\Crontab\Crontab;
return [
    'enable' => true,
    'crontab' => [


        //2 hours execute
        (new Crontab())->setType('command')->setName('Bar')->setRule('0 */2 * * *')->setCallback([
            'command' => 'kuyun:init',
            // (optional) arguments
            'type' => '31',
            // (optional) options
            'num' => 1,
        ]),
    ],
];